<?php

namespace App\Http\Admin\Controllers\Order;


use App\Http\Admin\Services\Order\OrderService;
use App\Http\Admin\Services\Order\OrderWeChatService;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;


class OrderWeChatController extends Controller
{
    protected $service;

    public function __construct(OrderWeChatService $orderWeChatService)
    {
        $this->service = $orderWeChatService;
    }

    /*
     *
     * */
    public function index(){
        return view('order.wechat_order');
    }

    public function list(Request $request){
        //列表
        $conditions = $request->all();
        $result = $this->service->list($conditions);
        return res('ok',$result);
    }

    /*
     * 导入excel
     * */
    public function orderWechatImport()
    {
        //导入excel
        $result = $this->service->orderWechatImport();
        return res('ok',$result);
    }









}